package ui
{
	import flash.display.MovieClip;
	import flash.events.TimerEvent;
	import flash.utils.Timer;

	public class uiMovie
	{
		public var bStart:Boolean = false;
		
		public var uiMc:MovieClip;
		
		public function uiMovie()
		{
			
		}
		
		
		public function init( ui:MovieClip ):void
		{
			uiMc = ui;
			
		}
		
		
		public function startTimer():void
		{
			uiMc.scaleX = 0.1;
			uiMc.scaleY = 0.1;
			
			bStart = true;
		}
		
		
		public function update( delay:Number ):void
		{
			if ( !bStart )
			{
				return;
			}
			
			uiMc.scaleX += 0.005 * delay;
			uiMc.scaleY += 0.005 * delay;
			
			if ( uiMc.scaleX >= 1.0 )
			{
				uiMc.scaleX = 1.0;
				uiMc.scaleY = 1.0;
				
				bStart = false;
			}
		}
		
		
		
	}
	
}


